home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / snowball.swf / scripts / DefineSprite_192 / frame_1 / DoAction.as
Text File  |  2011-08-19  |  451b  |  26 lines

  1. this.onEnterFrame = function()
  2. {
  3.    if(_root.startmoving == 1)
  4.    {
  5.       this._y -= _root.snowball.yspeed;
  6.       if(_Y < -10 - _height)
  7.       {
  8.          _Y = 500;
  9.          _X = random(600);
  10.          this.gotoAndStop(1);
  11.       }
  12.    }
  13.    if(this.hitTest(_root.snowball.detector))
  14.    {
  15.       if(_root.weight < 350)
  16.       {
  17.          _root.snowball.play();
  18.       }
  19.       else
  20.       {
  21.          this.play();
  22.       }
  23.    }
  24. };
  25. stop();
  26.